
{extend name="public/base" /}

<!--尾部-->

<!--返回顶部-->
{block name="content"}
{__block__}
<input type="hidden" name="mun_url" id="mun_url" value="5,0"/>
<link rel="stylesheet" type="text/css" href="../../static/home/css/dateRange.css"/>
<div class="c-r right">
	<div class="label1">
		<div class="title">
			交易记录
		</div>
		<div class="jyjl">
			<!--<form action="excel" method="get">-->
				<!--<div class="">-->
					<!--<input type="submit" name=""  value="导出数据" class="btn"/>-->
				<!--</div>-->
			<!--</form>-->
			<form action="recordfind" method="get">
				<div class="">
					<label>日期</label>
					<div class="bor3">
						<div class="ta_date" id="div_date_demo3">
							<span class="date_title" id="date_demo3"></span>
							<a class="opt_sel" id="input_trigger_demo3" href="#">
								<i class="i_orderd"></i>
							</a>
						</div>
					</div>
					<input type="button" name="" id="aRecent7DaysDemo3" value="最近七天" class="blue m_l"/>
					<input type="button" name="" id="aRecent30Days" value="最近一个月" class="blue m_l"/>
					<input type="button" name="" id="aRecent90Days" value="最近3个月" class="blue m_l"/>
					<input type="hidden" name="data_days" id="data_days"/>
					<input type="submit" name="" id="" value="查询" class="btn m_l"/>
				</div>
				<div class="">
					<input type="submit" name="datas" id="" value="导出数据" class="btn"/>
				</div>
			</form>
		</div>
		<div class="label-3 label">
			<div class="Statistics">
				<button class="blue"><a href="{:url('Record/excel')}">导出全部数据</a></button>
				<span class="right">共有数据：<b>{$num}</b>条</span>
				<span class="right">共收钱：<b>{$money}</b>元</span>
				<div class="clear"></div>
			</div>
			<!--<div class="search">-->
				<!--<div class="">-->
					<!--<input type="text" name="" id="" value="" placeholder="产品名称"/><button><i></i><span>搜产品</span></button>-->
				<!--</div>-->
			<!--</div>-->
			<!--<<div class="Statistics">
				<button class="delete">批量删除</button>
				<button class="blue"><a href="slide-add.html">添加照片</a></button>
				<span class="right">共有数据：<b>11</b>条</span>
				<div class="clear"></div>
			/div>-->
			<!--<div class="Statistics">
				<div class="left d">
					<form action="" method="post">

						<label>金额</label><input type="text" name="" id="" value="" />
						<label>金额</label><input type="text" name="" id="" value="" />

						<label>金额</label>
						<div class="radio">
							<label><input type="radio" name="a" id="" value="" /><span>金额</span></label>
							<label><input type="radio" name="a" id="" value="" /><span>金额</span></label>
						</div>

						<input type="submit" value="提交" class="modifybtn"/>
					</form>
				</div>
				<span class="right">共有数据：<b>11</b>条</span>
				<div class="clear"></div>
			</div>-->


			<!--<div class="query">-->
				<!--<div class="left">-->
					<!--<label>显示-->
						<!--<select name="">-->
							<!--<option value="">10</option>-->
							<!--<option value="">25</option>-->
							<!--<option value="">50</option>-->
							<!--<option value="">100</option>-->
						<!--</select>条-->
					<!--</label>-->
				<!--</div>-->
				<!--<div class="right">-->
					<!--<label>从当前数据中检索:-->
						<!--<input type="text" name="" id="" value="" />-->
					<!--</label>-->
				<!--</div>-->
				<!--<div class="clear"></div>-->
			<!--</div>-->
			<div class="Tab Tabs">
				<table border="0" cellspacing="0" cellpadding="0" style="width: 984px;">
					<tr>
						<th style="width: 40px;"><input type="checkbox" name="" id="" value="" /></th>
						<th style="width: 60px;">ID</th>
						<!--<th style="width: 110px;">用户名</th>-->
						<th style="width: 130px;">订单号</th>
						<!--<th style="width: 100px;">状态</th>-->
						<th style="width: 100px;">支付金额</th>
						<th style="width: 160px;">支付时间</th>

					</tr>
				</table>
				<table border="0" cellspacing="0" cellpadding="0" style="width: 984px;">
					{volist name="data" id="vo"}
					<tr>
						<td style="width: 40px;"><input type="checkbox" name="" id="" value="" /></td>
						<td style="width: 60px;">{$vo.orderid}</td>
						<td style="width: 130px;">{$vo.order_no}</td>
						<td style="width: 100px;" class="align-r">{$vo.money}</td>
						<td style="width: 160px;">{$vo.paytime|date='Y-m-d H:i:s',###}</td>
					</tr>
					{/volist}
				</table>
			</div>
			<div style="text-align: center" class="pages">
				{$data->render()}
			</div>
		</div>
	</div>
</div>
<script src="../../static/home/js/dateRange.js" type="text/javascript" charset="utf-8"></script>

<script type="text/javascript">
	var dateRange = new pickerDateRange('date_demo3', {
		aRecent7Days : 'aRecent7DaysDemo3', //最近7天
		isTodayValid : false,
		//startDate : '2013-04-14',
		//endDate : '2013-04-21',
		//needCompare : true,
		//isSingleDay : true,
		//shortOpr : true,
		defaultText : ' 至 ',
		inputTrigger : 'input_trigger_demo3',
		theme : 'ta',
		success : function(obj) {
			$("#dCon_demo3").html('开始时间 : ' + obj.startDate + '<br/>结束时间 : ' + obj.endDate);
		}
	});
	$(".btn").click(function(){
		if ($("#date_demo3").text() == "" || $("#date_demo3").text()== undefined){
			return false;
		}else{
			$("#data_days").val($("#date_demo3").text())
		}
		//$("#date_demo3").text()
		//alert($("#date_demo3").text())

	})
</script>



{/block}

